home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / cosmicfozmik.swf / scripts / frame_7 / PlaceObject2_90_7 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2007-09-27  |  872 b   |  33 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.gameOver == 1)
  3.    {
  4.       _visible = false;
  5.    }
  6.    if(_root.gameOn == 1)
  7.    {
  8.       if(isNegative == 0 && _root.negativeColor == 1)
  9.       {
  10.          myColor.negative();
  11.          isNegative = 1;
  12.       }
  13.       if(_root.negativeColor == 0)
  14.       {
  15.          myColor.setTransform(_root.origStars);
  16.       }
  17.       _X = _X - _root.groundSpeed / 4;
  18.       if(_X < - _width)
  19.       {
  20.          removeMovieClip(this);
  21.       }
  22.       if(this._x <= 600 && this.dupeOnce == 1)
  23.       {
  24.          this.duplicateMovieClip("stars2" + _root.stars2Count,_root.i);
  25.          _root["stars2" + _root.stars2Count]._y = this._y;
  26.          _root["stars2" + _root.stars2Count]._x = this._x + this._width - 5;
  27.          _root.i = _root.i + 1;
  28.          this.dupeOnce = 0;
  29.          _root.stars2Count = _root.stars2Count + 1;
  30.       }
  31.    }
  32. }
  33.